<?php

class plugin_erling_filedset {
    private $position = 'global_nav_extra';

    public function __construct() {
        global $_G;
        
        // 获取配置
        $configs = C::t('#erling_filedset#er_filedset_config')->fetch_by_keys([
            'position'
        ]);

        if (!empty($configs['position'])) {
            $this->position = $configs['position']['value']; 
        }

    }

    public function global_nav_extra() {
        if ($this->position == 'global_nav_extra') {
            return '<ul><li id="mn_forum"><a href="plugin.php?id=erling_filedset:upload">登录器列表</a></li></ul>';
        }
        
    }
}